package model

import (
	"database/sql"
	"time"
)

type User struct {
	Id          int64          `gorm:"primaryKey,column:id"`
	UserName    string         `gorm:"column:user_name"`
	Email       string         `gorm:"column:email"`
	Phone       string         `gorm:"column:phone"`
	Password    string         `gorm:"column:password"`
	Salt        string         `gorm:"column:salt"`
	Role        int64          `gorm:"column:role"`
	Avatar      sql.NullString `gorm:"column:avatar"`
	Bio         sql.NullString `gorm:"column:bio"`
	CreatedTime time.Time      `gorm:"column:created_time"`
	UpdatedTime time.Time      `gorm:"column:updated_time"`
	DeletedTime sql.NullTime   `gorm:"column:deleted_time"`
	Status      int64          `gorm:"column:status"`
}
